﻿function GetMap(container, opts) {
	var options = jQuery.extend(
		{
			enableClickableLogo: false, 
			enableSearchLogo: false, 
			showCopyright: false,
			showMapTypeSelector: false,
			showScalebar: false,
			showDashboard: false,
			credentials: 'An1MYIpSMoAwXq41CJjbsnwEPSg-cg9mqgox4xed3ObUw3RYu0BhsdQYQIMOKLOh',
			mapTypeId: Microsoft.Maps.MapTypeId.road,
		}, opts);

 	return new Microsoft.Maps.Map(container, options);
};

function AddPushpin()
{
    var shape = new VEShape(VEShapeType.Pushpin,new VELatLong(-16.12, 45.6)); 
    shape.SetTitle('My pushpin');
    shape.SetDescription('This is shape number ');
    map.AddShape(shape);
};